Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

The current P2P extension implementation assumes that the devices are from the same platform, which may not be the case. In cases where they are not the same, the adapters will try to access the handles as if they were the layout of the corresponding adapter, which may manifest as invalid accesses or unexpected read internal handle values, which can in turn conflict with actual device handles, potentially causing false positives. This commit adds a check that the devices are from the same platform before requesting the information from the backend.

The current P2P extension implementation assumes that the devices are
from the same platform, which may not be the case. In cases where they
are not the same, the adapters will try to access the handles as if they
were the layout of the corresponding adapter, which may manifest as
invalid accesses or unexpected read internal handle values, which can in
turn conflict with actual device handles, potentially causing false
positives. This commit adds a check that the devices are from the same
platform before requesting the information from the backend.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen merged commit aac2993 into intel:sycl Aug 22, 2025
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants